/**
 * api for user onlie
 * @returns {Promise<Response>}
 */
import { httpPost, httpGet, httpDel, httpPut } from '../index'

export function page (query) {
  return httpGet('/api/admin/session/page', query)
}

export function addObj (obj) {
  return httpPost('/api/admin/session', obj)
}

export function getObj (id) {
  return httpGet('/api/admin/session' + id)
}

export function delObj (id) {
  return httpDel('/api/admin/session/' + id)
}

export function putObj (id, obj) {
  return httpPut('/api/admin/session/' + id, obj)
}
